export const PRODUCT_INFO_TABLE_COLUMNS = [
  {
    prop: 'saleCode',
    label: '结算单号',
    minWidth: 200,
  },
  {
    prop: 'purchaseWayDesc',
    label: '采购方式',
    minWidth: 150,
  },
  {
    prop: 'purchasePriceGetWayDesc',
    label: '采购结算方式',
    minWidth: 150,
  },
  {
    prop: 'medicalInsuranceCode',
    label: '医保编码',
    width: 200,
  },
  {
    prop: 'supplierName',
    label: '供应商',
    minWidth: 150,
  },
  {
    prop: 'pssProdCode',
    label: '产品编码',
    minWidth: 150,
  },
  {
    prop: 'productLineName',
    label: '产品线',
    width: 150,
  },
  {
    prop: 'pssProdName',
    label: '产品名称',
    width: 150,
  },
  {
    prop: 'pssProdSpec',
    label: '规格',
    width: 150,
  },
  {
    prop: 'pssProdModel',
    label: '型号',
    width: 150,
  },
  {
    prop: 'prodSalePriceStr',
    label: '销售单价（元）',
    width: 150,
  },
  {
    prop: 'totalProdSalePriceStr',
    label: '销售金额（元）',
    width: 150,
  },
  {
    prop: 'prodTemplatePriceStr',
    label: '采购单价（元）',
    width: 150,
  },
  {
    prop: 'totalProdTemplatePriceStr',
    label: '采购金额（元）',
    width: 150,
  },
  {
    prop: 'pssMinUnit',
    label: '单位',
    width: 100,
  },
  {
    prop: 'nums',
    label: '数量',
    width: 100,
  },
  {
    prop: 'productBatch',
    label: '批号',
    width: 150,
  },
  {
    prop: 'productDateStr',
    label: '生产日期',
    width: 100,
  },
  {
    prop: 'expDateStr',
    label: '有效期至',
    width: 100,
  },
  {
    prop: 'barcode',
    label: '条形码',
    width: 100,
  },
  {
    prop: 'serial',
    label: '序列号',
    width: 100,
  },
  {
    prop: 'pssProdManufacturer',
    label: '生产厂家',
    width: 150,
  },
  {
    prop: 'pssRegistNo',
    label: '产品注册证号',
    width: 150,
  },
];

export const TABS_ARR = [
  { lab: '产品信息', val: 1 },
  { lab: '审核信息', val: 2 },
];

export const SERIAL_COLUMNS = [
  { width: '60px', type: 'index', label: '序号', align: 'center' },
  {
    minWidth: '150',
    prop: 'serialNumber',
    label: '序列号',
  },
  {
    minWidth: '150',
    prop: 'num',
    label: '数量',
  },
];
export const BARCODE_COLUMNS = [
  {
    minWidth: '150',
    prop: 'mainBarCode',
    label: '主码',
  },
  {
    minWidth: '150',
    prop: 'subBarCode',
    label: '次码',
  },
];
export const EXAMINE_TABLE = [
  {
    prop: 'salseCode',
    label: '结算单号',
    width: 220,
  },
  {
    prop: 'supplierName',
    label: '供应商',
    width: 180,
  },
  {
    prop: 'status',
    label: '审核状态',
    width: 100,
    formatter: (row) => {
      let status = '';
      if (row.status === 3) {
        status = '审核驳回';
      } else if (row.status === 4) {
        status = '审核通过';
      } else {
        status = '待审核';
      }
      return status;
    },
  },
  {
    prop: 'remarks',
    label: '审核备注',
    minWidth: 100,
  },
  {
    prop: 'action',
    label: '操作',
    width: 150,
    fixed: 'right',
  },
];
export const EXAMINE_COLUMNS = [
  {
    minWidth: '150',
    prop: 'examineAtStr',
    label: '审核时间',
  },
  {
    minWidth: '150',
    prop: 'companyName',
    label: '审核企业',
  },
  {
    minWidth: '150',
    prop: 'examineBy',
    label: '审核用户',
  },
  {
    minWidth: '150',
    prop: 'statusDesc',
    label: '审核结果',
  },
  {
    minWidth: '150',
    prop: 'remarks',
    label: '审核备注',
  },
];
